package com.xszx.serviceedu.service;

import com.xszx.serviceedu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xszx.serviceedu.entity.vo.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 白熊
 * @since 2024-07-17
 */
public interface ChapterService extends IService<Chapter> {
    List<ChapterVo> nestedList(String courseId);//根据id查询嵌套的章 节
    Boolean removeChapterById(String id);//根据id删除章目录  假如有节目录那就不能删除
    void removeByCourseId(String courseId);//根据课程id删除章目录
}
